package com.study.talk.netty.message.response;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("申请加入群聊后 发出请求的客户端的回响")
public class ApplyGroupSelfResponse extends TalkMessage {


    @Desc("群聊id")
    private Integer groupId;

    @Desc("不能发出申请的原因")
    private String reason;

    @Desc("是否发出申请成功")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.APPLY_GROUP_SELF_RESPONSE;
    }

    public ApplyGroupSelfResponse(Integer groupId, String reason, Boolean success) {
        this.groupId = groupId;
        this.reason = reason;
        this.success = success;
    }

    public ApplyGroupSelfResponse() {
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}
